package com.qf.shixi.result;


public class ResponseData {

    private String code;

    private String message;

    private Object object;

    public ResponseData() {
        this.code = ResponseCode.SUCCESS.getCode();
        this.message = ResponseCode.SUCCESS.getMessage();
    }

    public ResponseData(Object object) {
        this.code = ResponseCode.SUCCESS.getCode();
        this.message = ResponseCode.SUCCESS.getMessage();
        this.object = object;
    }
    public ResponseData(ResponseCode responseCode, Object object) {
        this.code = responseCode.getCode();
        this.message = responseCode.getMessage();
        this.object = object;
    }

    public ResponseData(ResponseCode responseCode) {
        this.code = responseCode.getCode();
        this.message = responseCode.getMessage();
    }

    public ResponseData(String code, String message, Object object) {
        this.code = code;
        this.message = message;
        this.object = object;
    }

    public ResponseData(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}

